package cn.bigfire.wedesk.util.portsanner;

import lombok.Data;

import java.util.concurrent.CopyOnWriteArrayList;

public class IpPorts {
    private String ip;
    private CopyOnWriteArrayList<Integer> portList = new CopyOnWriteArrayList<>();

    public static IpPorts of(String ip) {
        IpPorts ipPorts = new IpPorts();
        ipPorts.setIp(ip);
        return ipPorts;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public CopyOnWriteArrayList<Integer> getPortList() {
        return portList;
    }

    public void setPortList(CopyOnWriteArrayList<Integer> portList) {
        this.portList = portList;
    }
}
